<script type='text/javascript'>
var msg = '';
	

	var zzzhh="<?=1000*1000;?>";
	var web_used = <?=$host_size?> / zzzhh;//1000在linux下得不到
	var webmit = <?=$user['网站空间大小']?>  / zzzhh;
	
	var dbmit = <?=$sql_info['all']?>  / zzzhh;
	var db_used = <?=$sql_info['allsizen']?>  / zzzhh;
	
	if (webmit == '') {
		webmit = 0;
	}
	if (webmit > 0) {
		
		if (web_used == '') {
			web_used = 0;
		}
		var web_use_len = (web_used / webmit) * 100;
		//web_use_len = 30;
		if (db_used == '') {
			db_used = 0;
		}
		if (dbmit == "") {
			dbmit = 0;
		}
		if (dbmit > 0) {
			var db_use_len = (db_used / dbmit) * 100;
		}
		jQuery(document).ready(function() {
			if (web_use_len != null && web_use_len != 'undefined') {
								if (web_use_len < 1) {
									web_use_len = 1;
								}
								if (web_use_len > 100) {
									web_use_len = 100;
								}
						
								jQuery("#webdd").html("网页空间：<div class='web_ww' title='大小："
														+ webmit
														+ "M   已使用："
														+ web_use_len.toFixed(2)
														+ "%'><div class='use_web' style='width:"
														+ web_use_len.toFixed(2)
														+ "%'></div></div>");
							}
							if (db_use_len != null && db_use_len != 'undefined') {
								if (db_use_len < 1) {
									db_use_len = 1;
								}
								if (db_use_len > 100) {
									db_use_len = 100;
								}
								jQuery("#db").html("数据空间：<div class='web_ww' title='大小："
														+ dbmit
														+ "M   已使用："
														+ db_use_len.toFixed(2)
														+ "%'><div class='use_web' style='width:"
														+ db_use_len.toFixed(2)
														+ "%'  ></div></div>");
							}
						});
	}
</script>
<?php
$ftp_info_status_b=($ftp_info['status'])?'stop_ftp':'start_ftp';
$ftp_info_status_c=($ftp_info['status'])?'停用ftp':'启用ftp';
$yyy=$phplist[jd(BT_SEND('PHP当前版本', array('siteName'=>$user['domain'])))['phpversion']];

?>
<form action="<?=$GLOBALS['配置']['在线ftp']?>index.php?c=index&a=amftp_login" method="POST"  id="formftp" target="_blank" style="display:none;">
		<input type="hidden" name="ftp_ip" value="127.0.0.1">
		<input type="hidden" name="ftp_port" value="21">
		<input type="hidden" name="ftp_user" value="<?=$user['name']?>">
		<input type="hidden" name="ftp_pass" value="<?=$user['ftppass']?>">
		<button type="submit" name="submit" id="formftpbtn">在线文件</button></form>
		<script>
		function jrftp(){
			$("#formftpbtn").click();
		}
		</script>
<div id="ep_main2">		
<div class="ep_main2_general"><div class="ep_main_title">基本功能</div><ul>
		
        <li><a class="ymbd" href="/domain.php">域名绑定</a></li>
        <li><a class="xgmm" href="/editpass.php">修改密码</a></li>
        <li><a class="mrwj" href="/defaultindex.php">默认文件</a></li>
        <li><a class="ymtz" href="/30x.php">重定向</a></li>
        <li><a class="ymys" href="/rewrite.php">伪静态规则</a></li>
        <li><a class="sjkgl" href="/sqlgl.php">数据库管理</a></li>
	  
</ul></div>
<div class="ep_main2_general"><div class="ep_main_title">空间管理</div><ul>	  
	  


        <li><a class="zxwj" href="javascript:jrftp();">在线ftp</a></li>
        <li><a class="zxwj" href="/unzip.php">解压文件</a></li>
        <li><a class="ftp" href="/?sitestatus=<?=$ftp_info_status_b;?>"><?=$ftp_info_status_c;?></a></li>
        <li><a class="sjbf" href="/sitebak.php">网站备份</a></li>
        <li><a class="sjbf" href="/sqlbak.php">数据库备份</a></li>
        <li><a class="ssi" href="/ssl.php">SSL证书</a></li>

</ul></div>	  
<div class="ep_main2_general"><div class="ep_main_title">安全管理</div><ul>	

        <li><a class="fdl" href="/fdl.php">防盗链</a></li>


</ul></div>
<div class="ep_main2_general"><div class="ep_main_title">高级功能</div><ul>		  


        <li><a class="ljxx" href="/log.php">网站日志</a></li>
        <li><a class="http" href="/pass.php">网站密码访问</a></li>
        <li><a class="csgl" href="/inapp.php">一键部署程序</a></li>
        <!--li><a class="llt" href="#">流量图</a></li-->
		
</ul></div>
</div>

<div id="ep_main3"><div class="ep_main_title">虚拟主机信息</div>
	<ul>
        <li>用户名：<?=$user['name']?></li>
        <li>密码:&nbsp;&nbsp; 登陆、ftp、数据库密码,请至修改密码里面查看与修改</li>
        <li>创建时间：<?=$user['addtime']?></li>
        <li>主机状态：<?=($host_info['status'])?'正常':'停用';?>  [<a href="/?sitestatus=<?=($host_info['status'])?'stop':'start';?>"><?=($host_info['status'])?'停用站点':'启用站点';?></a>]</li>
		<li id="webdd"></li>
		<li id="db"></li>
		
        <li>网站空间：<?=Jsize($host_size)?>/<?=Jsize($user['网站空间大小'])?></li>
        <li>数据空间:<?=$sql_info['allsize']?>/<?=$sql_info['alln']?></li>
        <li>ftp地址:<?=$GLOBALS['配置']['显示']['ftp地址']?></li>
        <li>ftp账号:<?=$user['name']?></li>
        <li>sql地址:<?=$GLOBALS['配置']['显示']['sql地址']?></li>
        <li>sql端口:<?=$GLOBALS['配置']['显示']['sql端口']?></li>
        <li>sql用户名/数据库:<?=$user['name']?></li>
        <li>域名绑定数:<?=$user['域名数量']?></li>
			
		<li>语言:<?=$yyy?></li>
        <li>切换语言:<?php  foreach($phplist as $ia=>$ib){ ?> [<a href='?setphpv=<?=$ia?>'><?=$ib?></a>]&nbsp;&nbsp;&nbsp;&nbsp;<? } ?></li>
	</ul>
</div>
<div style="clear:both"></div>



      
